<div class="m-header">
    <div class="m1400 flexs flexsBet">
        <div class="logo">
            <img src="../images/logo.png" alt="">
        </div>
        <div class="mNav flexs">
            <button onclick="srcFn()" class="layui-btn layui-btn-sm layui-btn-radius">升级</button>
            <a href="questionnaire.asp" class="li flexs">
                <img src="../images/mIcon1.png" alt="">
                <span style="margin-top: 4px;">我的问卷 </span>
            </a>
            <a href="product.asp" class="li flexs">
                <img src="../images/mIcon2.png" alt="">
                <span>产品管理 </span>
            </a>

            <div class="li flexs">
                <a href="help.asp"><img src="../images/mIcon3.png" alt=""></a>
                <a href="news.asp"><img src="../images/mIcon4.png" alt=""></a>
                <a href="investigation.asp"><img src="../images/mIcon5.png" alt=""></a>
            </div>
            <div id="demo3" class="headInfo">
                <img class="avater" src="../images/t.png" alt="">
                <span>1552323131</span>
                <img src="../images/s.png" alt="">
            </div>
        </div>
    </div>
</div>

<script>
    layui.use(['dropdown'], function () {
        var dropdown = layui.dropdown
        //初演示 - 绑定文字
        dropdown.render({
            elem: '#demo3'
            , data: [{
                title: '资料管理'
                , id: 100
            },
            {
                title: '退出登录'
                , id: 101
            }]
            , click: function (obj) {
                console.log(obj.id)
                if(obj.id == 100){
                    window.location.href='userinfo.asp'
                }else if(obj.id == 101){
                    //退出登录
                }
            }
        });
    })
    function srcFn(){
        window.location.href = 'upgrade.asp'
    }
</script>